/*
  Copyright (c), 2001-2022, Shenshu Tech. Co., Ltd.
 */

//#ifndef __HOST_UVC_H__
//#define __HOST_UVC_H__

#include <linux/videodev2.h>
#include <linux/uvcvideo.h>

//#include "sample_comm.h"

#ifndef V4L2_PIX_FMT_H265
#define V4L2_PIX_FMT_H265     v4l2_fourcc('H', '2', '6', '5') /* H.265 aka HEVC */
#endif

#define TD_NULL                 0L
#define TD_SUCCESS              0
#define TD_FAILURE              (-1)

typedef unsigned char           td_uchar;
typedef unsigned char           td_u8;
typedef unsigned short          td_u16;
typedef unsigned int            td_u32;
typedef unsigned long           td_ulong;

typedef char                    td_char;
typedef signed char             td_s8;
typedef short                   td_s16;
typedef int                     td_s32;
typedef long                    td_slong;

typedef float                   td_float;
typedef double                  td_double;

typedef void                    td_void;

typedef struct {
    const td_char *name;
    td_u32 fourcc;
    td_char n_planes;
} format_info;

typedef struct {
    td_u32 nframes;
    const td_char *pattern;
    const td_char *type_name;
    td_s32 do_capture;
    td_s32 do_set_format;
    td_u32 pixelformat;
    td_s32 do_file;
    td_u32 input;
    td_u32 width;
    td_u32 height;

   
} uvc_ctrl_info;

